package com.jk.controller;

import com.jk.entity.InvestmentTypeEntity;
import com.jk.pojo.UserBean;
import com.jk.service.ManagementService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author 位佳生
 * @title: ManagementController
 * @projectName springboot_financial
 * @description: TODO
 * @date 2022/11/1110:06
 */
@RestController
@RequestMapping("management")
public class ManagementController {
    @Autowired
    private ManagementService managementService;
    /*
    *
     * @Author 位佳生
     * @Description //TODO 两表查询用户所有信息
     * @Date 2022/11/11 10:19
     
     * @return: java.util.List<com.jk.pojo.UserBean>
     **/
    @RequestMapping("getUserList")
    public List<UserBean> getUserList(UserBean userBean){
        return managementService.getUserList(userBean);
    }
    


    /*
     * @description:  
     * @author: 纪思齐 
     * @date: 2022/11/11 11:18
     * @param: []
     * @return: java.util.List<com.jk.entity.InvestmentTypeEntity>
     **/
    @RequestMapping("getInvestmentTypeList")
    public  List<InvestmentTypeEntity>  getInvestmentTypeList(){
        return  managementService.getInvestmentTypeList();
    }
}
